package cn.fufeiii.bt.common.web.filter;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author FuFei
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "logging.api")
public class ApiLogFilterProperty {

    /**
     * 打印请求日志
     */
    private Boolean printRequest = true;

    /**
     * 打印响应日志
     */
    private Boolean printResponse = true;

    /**
     * 忽略的请求路径
     */
    private List<String> ignoreRequestPathList = List.of();

    /**
     * 打印请求头日志列表
     */
    private List<String> printHeaderList = List.of("Content-Type", "trace-id");

}
